<template>
    <view class="content">
		<view class="list">
			<view class="listitem " :class="list.length==1&&index==0||list.length>0?'actives':''" v-for="(item,index) in list" :key="index">
				<image src="/static/ze-checked1.png" mode="widthFix"></image>
				<view>
					<view>{{item.name}}</view>
					<view>{{item.create_time}}</view>
					<view>{{item.info}}</view>
				</view>
			</view>
		</view>
    </view>
</template>

<script>
const app = getApp();
export default {
    data() {
        return {
            id: 0,
			list:[]
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad(options) {
        var that = this;
		this.id = options.id
		this.UserorderDes()
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {},
    methods: {
		UserorderDes(){
			var that = this;
			app.globalData.api.request('User/orderRefundInfo', {
				page:this.page,
				id:this.id,
			}, 'post', 'form').then((res) => {
				if (res.code == 0) {
					//console.log(res.data)
					this.list = res.data
				}else{
					app.globalData.show(res.msg)
				}
			});
		},
	}
};
</script>
<style>
	.listitem>view>view:nth-child(1){
		color: #333 !important;
		font-size: 28rpx !important;
		text-align: left;
		font-family: PingFangSC-medium;
	}
	.listitem{
		width: 100%;
		height: auto;
		display: table;
		position: relative;
		box-sizing: border-box;
		padding-left: 30px;
	}
	.actives::before{
		content: "";
		width: 1px;
		height: 100%;
		background-color: rgba(219,219,219,1);
		box-sizing: border-box;
		position: absolute;
		top: 0px;
		left: 9px;
	}
	.listitem>image{
		width: 20px;
		height: 20px;
		position: absolute;
		top: 0px;
		left: 0px;
	}
	.listitem>view{
		width: 100%;
		height: auto;
		display: table;
	}
	.listitem>view>view{
		width: 100%;
		height: auto;
		display: table;
		color: #666;
		font-size: 22rpx;
		text-align: left;
		font-family: PingFangSC-medium;
		margin-bottom: 10px;
	}
	.list{
		width: 700rpx;
		height: auto;
		display: table;
		margin: 25rpx;
		box-sizing: border-box;
		padding: 20rpx;
		background-color: #fff;
		border-radius: 10rpx;
	}
	page{
		background-color: #f6f6f6;
	}
	.content {
		width: 100%;
		height: auto;
		display: table;
	}
</style>
